package org.stan.beanvalidator.deletage;

import org.stan.beanvalidator.utils.PatternUtil;
import org.stan.beanvalidator.utils.ValidateConstant;

/**
 * @ClassName 日本邮编校验器执行者 CHNPostCodeValidator
 * 格式：其中前3位数字表示区域，后4位数字表示分支。例如：951-8073
 * @Author src
 * @Date 2020-07-12 10:46
 * @Discriptions
 */
public class JPNPostCodeValidator implements IPostCodeDeletage{
    @Override
    public boolean validatePostCode(String postCode) {
        return PatternUtil.patternPostCode(ValidateConstant.REGEX_JPN,postCode);
    }
}
